package com.ifar.audiosdk.common.entity

import com.ifar.audiosdk.common.IfarConfig

/**
 * websocket通用消息体
 */
data class IfarWebSocketEntity(
    var fromID: String = IfarConfig.id,
    var fromName: String = IfarConfig.name,
    var toID: String = "",
    var toName: String = "",
    var companyID: String = IfarConfig.company_id,
    var channelID: String = IfarConfig.channel_id,
    var msgMainFlag: String = "",
    var msgSubFlag: String = "",
    var avatar: String = IfarConfig.avatar,
    var msgData: IfarMsgData = IfarMsgData()
)

/**
 * websocket其他消息
 */
data class IfarMsgData(
    var tip: String = "",
    var is_signin: String = IfarConfig.is_sign_in,
    var is_calling: String = "",
    var peerID: String = IfarConfig.peer_id,
    var groupName: String = IfarConfig.group_name,
    var permission: String = IfarConfig.permission,
    var info: String = "",
    var value: String = "",
    var fileInfo: String = "",
    var markID: String = "",
    var muteUserID: String = "",
    var mutedPeerID: String = "",
    var hangupUserID: String = "",
    var url: String = "",
    var stream_options: String = "",
    var happened_time: String = "",
    var file_name: String = "",
    var file_size: String = ""
)


